import { defineComponent, createApp } from 'vue'

const MessageCom = defineComponent({
  name: 'Message',
  setup() {
    return () => <>sss</>
  }
})

function MessageFn() {
  const div = document.createElement('div')
  document.body.appendChild(div)
  // div.className = 'divCls'
  const app = createApp(MessageCom)
  app.mount(div)
  return function () {
    // app.unmount(div)
    div.remove()
  }
}

export default MessageFn
